import request from '@/api/socialized-servce/index.js' //引入http.js
const api = request
export default {
	//
	queryPost(params,id) {
		let url = `socialized-expert/invitation/queryById?id=${id}`
		return api.request(url,'get',{
			...params
		})
	},
	// 获取交流列表
	queryCommunicationList(params) {
		let url = 'socialized-expert/exchange/queryByCondition'
		return api.request(url,'post',{
			...params
		})
	},
	// 帖子详情
	queryPostList(params,id) {
		let url = `socialized-expert/invitation/queryById?id=${id}`
		return api.request(url,'get',{
			...params
		})
	},
	// 交流表添加
	add(params) {
		let url = `socialized-expert/exchange/add`
		return api.request(url,'post',{
			...params
		})
	},
	// 已解决
	// 未解决
	edit(params) {
		let url = 'socialized-expert/invitation/edit'
		return api.request(url,'put',{
			...params
		})
	}

}